package Adapter;

public class Test {
    @org.junit.Test
    public void test() {
        ThreeElectricOutlet threeElectricOutlet;
        Wash wash = new Wash();
        threeElectricOutlet = wash;
        System.out.println("使用三相插座接通电流.");
        threeElectricOutlet.connectElectricCurrnent();

        TV tv = new TV();
        TreeElectricAdapter adapter = new TreeElectricAdapter(tv);
        threeElectricOutlet = adapter;
        System.out.println("使用三相插座接通电流。");
        threeElectricOutlet.connectElectricCurrnent();
    }
}
